local linuxIp = "192.168.1.82"
local windowsIp = "192.168.1.21"
-- 区服配置
local Config = {}

Config.server = {
    name = "周俊服", -- 服务器名称
    areaId = 2000, -- 服务器编号
    clusterIp = linuxIp, -- 保持与下面center一样
    clusterPort = 6000,
    openSrvDate = "2024-05-11"

}

-- center 中心服 唯一
Config.service = {
    -- 中心(唯一)
    ["center"] = {
        clusterIp = linuxIp,
        clusterPort = 6000,
        clusterDebug = 6100
    },
    -- 网关(集群)
    ["gate_1"] = {
        clusterIp = linuxIp,
        clusterPort = 6001,
        clusterDebug = 6101,
        serviceNum = 10,
        ip = linuxIp,
        tcpport = 8888
    },
    -- role(集群)
    ["role_1"] = {
        clusterIp = linuxIp,
        clusterPort = 6012,
        clusterDebug = 6112,
        serviceNum = 5
    },
    -- 公会(集群)
    ["guild_1"] = {
        clusterIp = linuxIp,
        clusterPort = 6013,
        clusterDebug = 6113,
        serviceNum = 5
    },
    -- 聊天(唯一)
    ["chat"] = {
        clusterIp = linuxIp,
        clusterPort = 6014,
        clusterDebug = 6144,
        serviceNum = 5
    },
    -- 地图(唯一)
    ["map"] = {
        clusterIp = linuxIp,
        clusterPort = 6015,
        clusterDebug = 6115
    }
}

Config.mysql = {
    ["role"] = {
        host = windowsIp,
        port = 3306,
        database = "slg_role2000",
        user = "root",
        password = "123456"
    },
    ["guild"] = {
        host = windowsIp,
        port = 3306,
        database = "slg_guild2000",
        user = "root",
        password = "123456"
    },
    ["recharge"] = {
        host = windowsIp,
        port = 3306,
        database = "slg_recharge2000",
        user = "root",
        password = "123456"
    }
}

-- 登录服务初始化连接数
Config.loginConnNum = 10

Config.redis = {
    ["role"] = {
        host = windowsIp,
        port = 6379,
        db = 15,
        auth = "123456"
    },
    ["map"] = {
        host = windowsIp,
        port = 6379,
        db = 14,
        auth = "123456"
    },
    ["chat"] = {
        host = windowsIp,
        port = 6379,
        db = 12,
        auth = "123456"
    }
}

return Config
